//
//  DataOfAskInMyPublish.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/23
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfAskInMyPublish.h"
#import "QuestionOfDataAskInMyPublish.h"

@implementation DataOfAskInMyPublish
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"question"]) {
        NSMutableArray<QuestionOfDataAskInMyPublish *> *mArrrayOfQuestionOfDataAskInMyPublish = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            QuestionOfDataAskInMyPublish *questionOfDataAskInMyPublish = [QuestionOfDataAskInMyPublish modelDic:dic];
            [mArrrayOfQuestionOfDataAskInMyPublish addObject:questionOfDataAskInMyPublish];
        }
        _question = mArrrayOfQuestionOfDataAskInMyPublish;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"question" : [QuestionOfDataAskInMyPublish class]};
}

@end
